package com.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class IRuleConfig {

    /**
     * 名称一定叫iRule
     * @return
     */
    @Bean
    public IRule iRule() {
        return new RandomRule();
    }
}
